<?php


namespace app\common\model\hotel;


use app\common\enum\hotel\HotelEnum;
use app\common\model\BaseModel;
use think\model\concern\SoftDelete;

/**
 * @projectName src
 */
class Hotel extends BaseModel
{
    use SoftDelete;

    protected $deleteTime = 'delete_time';

    public function getStatusAttr($value,$data)
    {
        return HotelEnum::getHotelStatus($data['status']);
    }

}